﻿package mortal.game.view.task.drama.operations
{
    import com.gengine.global.*;
    import com.gengine.keyBoard.*;
    import mortal.game.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;

    public class TaskDramaMouseKeyboardControl extends Object
    {

        public function TaskDramaMouseKeyboardControl()
        {
            return;
        }// end function

        public static function set enablePlayerOp(param1:Boolean) : void
        {
            Game.scene.setMouseEnabled(param1);
            if (param1)
            {
                KeyBoardManager.instance.cancelListener();
                KeyBoardManager.instance.addListener();
            }
            else
            {
                KeyBoardManager.instance.cancelListener();
            }
            return;
        }// end function

        public static function set enableViews(param1:Boolean) : void
        {
            if (!param1)
            {
                PopupManager.closeAllFullView();
                LayerManager.windowLayer3D.removeAllWindow();
                GameController.npc.hideAllModules();
            }
            LayerManager.uiLayer.visible = param1;
            if (!Global.isDebugModle)
            {
                LayerManager.windowLayer.visible = param1;
            }
            LayerManager.topLayer.visible = param1;
            LayerManager.popupLayer.visible = param1;
            LayerManager.guideLayer.visible = param1;
            LayerManager.dragLayer.visible = param1;
            LayerManager.toolTipLayer.visible = param1;
            LayerManager.msgTipLayer.visible = param1;
            GameController.guide.isShowGuideOnlineFashion = param1;
            LayerManager.changeEntityTalkLayerToUILayer(param1);
            return;
        }// end function

    }
}
